import axios from '../utils/request';

/**
 * @description: 查询
 * @param {*} params
 * @return {*}
 */
 export function Query(params) {
    return axios({
        method: 'get',
        url: '/Role/Query',
        params: params
    });
}

/**
 * @description: 根据角色查菜单
 * @param {*} params
 * @return {*}
 */
 export function QueryByRole(params) {
    return axios({
        method: 'get',
        url: '/Role/QueryByRole',
        params: params
    });
}

/**
 * @description: 分配权限
 * @param {*} data
 * @return {*}
 */
 export function AssignPermission(data) {
    return axios({
        method: 'post',
        url: '/Role/AssignPermission',
        data
    });
}

/**
 * @description: 
 * @param {*} params
 * @return {*}
 */
 export function QueryPermission(params) {
    return axios({
        method: 'get',
        url: '/Role/QueryPermission',
        params: params
    });
}